import request from '@/utils/request'

/**
 * 商品浏览记录表分页查询
 * @param {查询条件} data
 */
export function listCorecmsgoodsbrowsing(query) {
  return request({
    url: 'business/Corecmsgoodsbrowsing/list',
    method: 'get',
    params: query,
  })
}

/**
 * 新增商品浏览记录表
 * @param data
 */
export function addCorecmsgoodsbrowsing(data) {
  return request({
    url: 'business/Corecmsgoodsbrowsing',
    method: 'post',
    data: data,
  })
}
/**
 * 修改商品浏览记录表
 * @param data
 */
export function updateCorecmsgoodsbrowsing(data) {
  return request({
    url: 'business/Corecmsgoodsbrowsing',
    method: 'PUT',
    data: data,
  })
}
/**
 * 获取商品浏览记录表详情
 * @param {Id}
 */
export function getCorecmsgoodsbrowsing(id) {
  return request({
    url: 'business/Corecmsgoodsbrowsing/' + id,
    method: 'get'
  })
}

/**
 * 删除商品浏览记录表
 * @param {主键} pid
 */
export function delCorecmsgoodsbrowsing(pid) {
  return request({
    url: 'business/Corecmsgoodsbrowsing/delete/' + pid,
    method: 'POST'
  })
}
